package com.example.chat.viewmodel

import androidx.compose.runtime.mutableStateOf
import com.example.chat.model.UserMessage
import com.example.chat.view.MessageType
import com.example.chat.model.Topic
import com.example.featuresdk.vo.Status
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.emptyFlow

/**
 * State observed by Compose View
 */
class TopicDetailState {
    var status = mutableStateOf(Status.Loading)
    var message = mutableStateOf("")

    var topic: Flow<Topic> = emptyFlow()

    var messages:Flow<List<UserMessage>> = emptyFlow()

    val messageType = mutableStateOf(MessageType.None)

    val messageTypeSelectorVisible = mutableStateOf(false)

    val chatContent = mutableStateOf("")
}